package com.ebupt.migu.music.bannertwo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ebupt.migu.music.bannertwo.entity.BannerTwoDetail;
import com.ebupt.migu.music.bannertwo.entity.BannerTwoInfo;
import com.ebupt.migu.music.bannertwo.entity.BannerTwoOperate;
import com.ebupt.migu.music.common.entity.ResultObject;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;


public interface IBannerTwoInfoService extends IService<BannerTwoInfo> {

	/**
	 * 添加一对多
	 *
	 * @param bannerTwoInfo
	 * @param bannerTwoDetailList
	 */
	public void saveMain(BannerTwoInfo bannerTwoInfo,List<BannerTwoDetail> bannerTwoDetailList) ;
	
	/**
	 * 修改一对多
	 *
   * @param bannerTwoInfo
   * @param bannerTwoDetailList
	 */
	public void updateMain(BannerTwoInfo bannerTwoInfo,List<BannerTwoDetail> bannerTwoDetailList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (Map<String, Object> params);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	ResultObject priority(Map<String, Object> params);

	ResultObject getConditions();
}
